package com.swpu.service_user.service;

import com.swpu.commonutils.R;
import com.swpu.service_user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_user.entity.vo.UserAuthor;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author caicai
 * @since 2024-01-24
 */
public interface UserService extends IService<User> {

    String getOpenIdAndSessionKey(UserAuthor userAuthor) throws Exception;

    R login(UserAuthor userAuthor) throws Exception;

    User updateUserStepCount(User user, String openid);

    User getUserInfo(String openid);

    void updateUserInfo(String openid,User user);

    Map getCaloriesRecommend(String openid);

    Map getUserRemindInfo(String openid);
}
